package elearning.category.json;

import java.util.List;

import org.junit.Test;

import com.google.gson.Gson;
import com.opensymphony.xwork2.ModelDriven;

import elearning.category.entity.Category;
import elearning.category.service.CategoryService;

public class CategoryJson {	
	
	@Test
	public void categoryJson(){	
		CategoryService categoryService = new CategoryService();
		System.out.println(categoryService);
		List<Category> category = categoryService.findAll();
//		Gson gson = new Gson();
//		System.out.println(gson.toJson(category.get(0)));
	}


	
	
}
